package com.test.ml.yqs.entity;

public class SystemVariable {
	public static String pid;//本期彩票期数,格式20171016-100
	public static String pid2;//本期彩票期数,格式171016100
	public static String uppid;//上期彩票期数
	public static String upopcode;//上期开奖号码
	
	public static void setPid(String oldpid){
		uppid=oldpid;
		if(oldpid!=null){
			String temppid=(Integer.parseInt(oldpid)+1)+"";
			pid2=temppid;
			pid="20"+temppid.substring(0, 6)+"-"+temppid.substring(6);
		}
	}
	
	public static void main(String[] args) {
		System.out.println("171016100".substring(6));
	}
}
